﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AutoUpdate
{
    public class AutoUpdate_DMC
    {
        string versof = "";
        string datesof = "";
        string verser = "";
        string dateser = "";
        public Boolean CheckVersion()
        {
            GetConnect.Newload("version.xml", ref versof, ref datesof);
            GetConnect.Newload("ftp://dmcland:dmc3star@113.160.48.46/LongBien/version.xml", ref verser, ref dateser);
            //MessageBox.Show(versof.CompareTo(verser).ToString());
            if (versof.CompareTo(verser) == -1 && versof!="")
            {
                return true;
            }
            else return false;            
        }
    }
}
